package com.topcheer.gateway.ribbon;

import com.netflix.loadbalancer.Server;
import lombok.Getter;
import lombok.Setter;

/**
 * @author xutao
 * @Package com.topcheer.gateway.ribbon
 * @Description: ${todo}
 * @date 2020/9/25 17:15
 */
@Getter
@Setter
public class WeightServer extends Server {

    private Integer weight;
    private Integer currentWeight;
    private String type; // jd/rpf

    public WeightServer(String scheme, String host, int port, Integer weight, String type) {
        super(scheme, host, port);
        this.weight = weight;
        this.type = type;
    }
}
